<?php defined('SYSPATH') or die('No direct script access.');
 
class Accesstoken_Model extends Model {

	protected $db  = 'default';
	public function __construct()
	{
		//$this->db = new Database::instance($this->db);
		// load database library into $this->db (can be omitted if not required)
		parent::__construct();
	}

	public function getToken($id)
	{
		//$this->db->where('id', $id);
		$result = $this->db->query('select * from access_tokens where id='.$id);
		return $result[0];
	} 
}
